home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-02 | 1.3 KB | 40 lines | [TEXT/GEOL] |
- Item 5687361 2-Oct-89 14:42
-
- From: D2086 Efficient Field Svc, C Faith,PRT
-
- To: MACAPP.TECH$ MACAPP Tech
- MACDTS Macintosh Developer Tech. Supt.
-
- Sub: Solved {ObjApp} ?
-
- Hello,
-
- It seems that frequently when I finally set down and write a link to ask a
- question I have been meaning to ask, I also spend enough time solving the
- problem that I answer it myself.
-
- The problem I have been having gaining access to the {SrcApp} and {ObjApp}
- variables is solved by this:
-
- Don't run MABuild directly but use:
-
- execute MABuild
-
- It seems that when you run a script all the variables of the script disappear
- after it is run. Execute takes the script and runs the contents as if it were
- in the current scope, it does not create another scope.
-
- The definition for execute states: "This means that the variable definitions,
- exports, and aliases will continue to exist after it has finished. (Normally
- these definitions, exports and aliases would be local to the script.)"
-
- I was always under the impression that export would take a variable and make
- its scope global. It does not do this, it rather makes a variable available to
- scripts and scopes inside the current scope, not outside. It seems Export is a
- bad name (by my way of thinking).
-
-
- - Curtis
-
-
-